package com.shop.operator.service;

import java.util.List;

import com.shop.model.ItemCat;

public interface ItemCatService {
	/**
	 * 通过父分类Id查找 子分类
	 * @param parentId
	 * @return
	 * @throws Exception
	 */
	List<ItemCat> findByParentId(Long parentId) throws Exception;
	/**
	 * 新建分类
	 * @param itemCat
	 * @throws Exception
	 */
	void add(ItemCat itemCat) throws Exception;
	/**
	 * 删除分类
	 * @param ids
	 * @throws Exception
	 */
	void delete(List<Long> ids) throws Exception;
	/**
	 * 更新分类
	 * @param itemCat
	 * @throws Exception
	 */
	void update(ItemCat itemCat) throws Exception;
}
